#ifndef __WokerThread_H__
#define __WokerThread_H__

#include "Thread.hpp"
#include "Threadpool.hpp"

namespace wd
{

class WorkerThread : public Thread
{
public:
    WorkerThread(Threadpool & tp)
    : _threadpool(tp)
    {}

private:
    void run() override
    {
        _threadpool.doTask();
    }

private:
    Threadpool & _threadpool;
};


}//end of namespace wd


#endif

